// algowala.cc
//
// by jag bot
//

#include <iostream>
#include <iomanip>
#include <iterator>
#include <fstream>
#include <string>
#include <list>
#include <algorithm>
#include <signal.h>
#include <stdlib.h>
#include <sstream>
#include <map>

using namespace std;

int main (int argc, char* argv[]) {
      
  map <string, string> securities; // symbol/company  
  
  ifstream file ("securities", ios::in); // read the securities file
  while (!file.eof()) {
    string symbol, company;
    file >> symbol >> company;
    securities [symbol] = company;
  }
  
  for (map<string, string>::iterator i = securities.begin (), j = securities.end (); i != j; ++i) {
    const pair<string, string>& p = *i;
    cout << "symbol: " << p.first << ", company: " << p.second << endl; 
  }
  
  return 0;
}
